<?php

#    Document   : membership_model
#    Created on : May 4, 2011, 3:19:54 PM
#    Author     : ClarkT AKA FalleN
#    Company    : Amodity
#    Web        : http://www.amodity.com
#    Copyright  : 2011
/**

 * @property CI_Loader $load

 * @property CI_Form_validation $form_validation

 * @property CI_Input $input

 * @property CI_Email $email

 * @property CI_DB_active_record $db

 * @property CI_DB_forge $dbforge

 *  @property CI_Session $session

 * @property CI_FTP $ftp

 */

class Login_model extends CI_Model {

    function create_member() {
        $this->load->library('auth');
        $additional_data = array(
            'first_name' => $this->input->post('first_name'),
            'last_name' => $this->input->post('last_name')
        );
        return $this->auth->register($this->input->post('username'), $this->input->post('password'), $this->input->post('email_address'), $additional_data);
    }

}

?>
